package domain

type Amount struct {
	Total    int64  `json:"total"`
	Currency string `json:"currency"`
}
type Payment struct {
	Amt Amount
	//代表业务
	BizTradeNO  string
	Description string
	Status      PaymentStatus
	//第三方传过来的id
	TxnID string
}
type PaymentStatus uint8

func (p PaymentStatus) AsUint8() uint8 {
	return uint8(p)
}

const (
	PaymentStatusUnknown = iota
	PaymentStatusInit
	PaymentStatusSuccess
	PaymentStatusFailed
	PaymentStatusRefund
)
